package com.mo.design.pattern.behavior.iterator;

public class IteratorMain {
    public static void main(String[] args) {
        String arr[] = {"a", "b", "c", "d"};
        StringArray stringArray = new StringArray(arr);
        for (Iterator it = stringArray.createIterator(); it.hasNext();) {
            System.out.println(it.next());
        }
    }
}
